package test_3_15;

public class hree {
    public static void main(String[] args) {
        int []arr={4,1,2,1,2};
        int sum=arr[0];
        for(int i=1;i<arr.length;i++)
        {
            sum^=arr[i];
        }
        System.out.println(sum);
    }
}
